package org.jeecg.modules.business.vo;

import org.jeecg.modules.business.entity.IotPressuremeter;
import org.jeecg.modules.business.entity.IotWatermeter;
import org.jeecg.modules.business.enums.ManufacturerTypeEnum;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * @author:Gan Linghao
 * @date:2020/7/14 0014
 * @time:16:34
 * @description:no description
 */
public class IotManufacturerVO  {
    /**
     * 主键
     */

    private Long id;

    /**
     * 厂商名称
     */

    private String name;

    /**
     * 厂商地址
     */

    private String address;

    /**
     * 设备首次安装时间
     */

    private Date firstInstalledTime;

    /**
     * 联系人
     */
    private String contact;

    /**
     * 联系人电话
     */

    private String contactPhone;

    /**
     * 联系人2
     */

    private String contact2;

    /**
     * 联系电话2
     */
    private String contactPhone2;

    /**
     * 备注
     */

    private String remark;

    private Date createTime;

    private Date updateTime;

    /**
     * 表数量
     */
    private Integer amount;

    /**
     * 树形水表表号
     */
    private List<IotWatermeter> identificationCodeList;

    /**
     * 树形压力表列表
     */
    private List<IotPressuremeter> iotPressuremeterList;

    /**
     * 异常类型：1 - 表数据异常 ； 2 - 大表数据异常； 3 - 户表数据异常； 9 - 其他异常
     */
    private Integer exceptionType;

    /**
     * 异常内容
     */
    private String content;


    public String getExceptionType() {
        if ( exceptionType == null || exceptionType == 0 ){
            return ("无");

        }
        return ManufacturerTypeEnum.getName(exceptionType);
    }

    public void setExceptionType(Integer exceptionType) {
        this.exceptionType = exceptionType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<IotPressuremeter> getIotPressuremeterList() {
        return iotPressuremeterList;
    }

    public void setIotPressuremeterList(List<IotPressuremeter> iotPressuremeterList) {
        this.iotPressuremeterList = iotPressuremeterList;
    }

    public List<IotWatermeter> getIdentificationCodeList() {
        return identificationCodeList;
    }

    public void setIdentificationCodeList(List<IotWatermeter> identificationCodeList) {
        this.identificationCodeList = identificationCodeList;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    private static final long serialVersionUID = 1L;


    public Long getId() {
        return id;
    }


    public void setId(Long id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public String getAddress() {
        return address;
    }


    public void setAddress(String address) {
        this.address = address;
    }


    public Date getFirstInstalledTime() {
        return firstInstalledTime;
    }


    public void setFirstInstalledTime(Date firstInstalledTime) {
        this.firstInstalledTime = firstInstalledTime;
    }


    public String getContact() {
        return contact;
    }


    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContactPhone() {
        return contactPhone;
    }


    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }


    public String getContact2() {
        return contact2;
    }


    public void setContact2(String contact2) {
        this.contact2 = contact2;
    }


    public String getContactPhone2() {
        return contactPhone2;
    }


    public void setContactPhone2(String contactPhone2) {
        this.contactPhone2 = contactPhone2;
    }


    public String getRemark() {
        return remark;
    }


    public void setRemark(String remark) {
        this.remark = remark;
    }


    public Date getCreateTime() {
        return createTime;
    }


    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Date getUpdateTime() {
        return updateTime;
    }


    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "IotManufacturerVO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", firstInstalledTime=" + firstInstalledTime +
                ", contact='" + contact + '\'' +
                ", contactPhone='" + contactPhone + '\'' +
                ", contact2='" + contact2 + '\'' +
                ", contactPhone2='" + contactPhone2 + '\'' +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", amount=" + amount +
                ", identificationCodeList=" + identificationCodeList +
                ", iotPressuremeterList=" + iotPressuremeterList +
                '}';
    }
}
